home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Graphics Programming (2nd Edition) / Visual Basic Graphics Programming 2nd Edition.iso / Src / Ch1 / QBColor.frm (.txt) < prev    next >
Visual Basic Form  |  1999-03-19  |  9KB  |  314 lines

  1. VERSION 5.00
  2. Begin VB.Form frmQBColor 
  3.    Caption         =   "QBColor"
  4.    ClientHeight    =   1575
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   5175
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   1575
  10.    ScaleWidth      =   5175
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.Label lblName 
  13.       Caption         =   "0"
  14.       Height          =   255
  15.       Index           =   15
  16.       Left            =   4080
  17.       TabIndex        =   31
  18.       Top             =   1200
  19.       Width           =   255
  20.    End
  21.    Begin VB.Label lblColor 
  22.       BorderStyle     =   1  'Fixed Single
  23.       Height          =   255
  24.       Index           =   15
  25.       Left            =   4440
  26.       TabIndex        =   30
  27.       Top             =   1200
  28.       Width           =   615
  29.    End
  30.    Begin VB.Label lblName 
  31.       Caption         =   "0"
  32.       Height          =   255
  33.       Index           =   14
  34.       Left            =   4080
  35.       TabIndex        =   29
  36.       Top             =   840
  37.       Width           =   255
  38.    End
  39.    Begin VB.Label lblColor 
  40.       BorderStyle     =   1  'Fixed Single
  41.       Height          =   255
  42.       Index           =   14
  43.       Left            =   4440
  44.       TabIndex        =   28
  45.       Top             =   840
  46.       Width           =   615
  47.    End
  48.    Begin VB.Label lblName 
  49.       Caption         =   "0"
  50.       Height          =   255
  51.       Index           =   13
  52.       Left            =   4080
  53.       TabIndex        =   27
  54.       Top             =   480
  55.       Width           =   255
  56.    End
  57.    Begin VB.Label lblColor 
  58.       BorderStyle     =   1  'Fixed Single
  59.       Height          =   255
  60.       Index           =   13
  61.       Left            =   4440
  62.       TabIndex        =   26
  63.       Top             =   480
  64.       Width           =   615
  65.    End
  66.    Begin VB.Label lblName 
  67.       Caption         =   "0"
  68.       Height          =   255
  69.       Index           =   12
  70.       Left            =   4080
  71.       TabIndex        =   25
  72.       Top             =   120
  73.       Width           =   255
  74.    End
  75.    Begin VB.Label lblColor 
  76.       BorderStyle     =   1  'Fixed Single
  77.       Height          =   255
  78.       Index           =   12
  79.       Left            =   4440
  80.       TabIndex        =   24
  81.       Top             =   120
  82.       Width           =   615
  83.    End
  84.    Begin VB.Label lblName 
  85.       Caption         =   "0"
  86.       Height          =   255
  87.       Index           =   11
  88.       Left            =   2760
  89.       TabIndex        =   23
  90.       Top             =   1200
  91.       Width           =   255
  92.    End
  93.    Begin VB.Label lblColor 
  94.       BorderStyle     =   1  'Fixed Single
  95.       Height          =   255
  96.       Index           =   11
  97.       Left            =   3120
  98.       TabIndex        =   22
  99.       Top             =   1200
  100.       Width           =   615
  101.    End
  102.    Begin VB.Label lblName 
  103.       Caption         =   "0"
  104.       Height          =   255
  105.       Index           =   10
  106.       Left            =   2760
  107.       TabIndex        =   21
  108.       Top             =   840
  109.       Width           =   255
  110.    End
  111.    Begin VB.Label lblColor 
  112.       BorderStyle     =   1  'Fixed Single
  113.       Height          =   255
  114.       Index           =   10
  115.       Left            =   3120
  116.       TabIndex        =   20
  117.       Top             =   840
  118.       Width           =   615
  119.    End
  120.    Begin VB.Label lblName 
  121.       Caption         =   "0"
  122.       Height          =   255
  123.       Index           =   9
  124.       Left            =   2760
  125.       TabIndex        =   19
  126.       Top             =   480
  127.       Width           =   255
  128.    End
  129.    Begin VB.Label lblColor 
  130.       BorderStyle     =   1  'Fixed Single
  131.       Height          =   255
  132.       Index           =   9
  133.       Left            =   3120
  134.       TabIndex        =   18
  135.       Top             =   480
  136.       Width           =   615
  137.    End
  138.    Begin VB.Label lblName 
  139.       Caption         =   "0"
  140.       Height          =   255
  141.       Index           =   8
  142.       Left            =   2760
  143.       TabIndex        =   17
  144.       Top             =   120
  145.       Width           =   255
  146.    End
  147.    Begin VB.Label lblColor 
  148.       BorderStyle     =   1  'Fixed Single
  149.       Height          =   255
  150.       Index           =   8
  151.       Left            =   3120
  152.       TabIndex        =   16
  153.       Top             =   120
  154.       Width           =   615
  155.    End
  156.    Begin VB.Label lblName 
  157.       Caption         =   "0"
  158.       Height          =   255
  159.       Index           =   7
  160.       Left            =   1440
  161.       TabIndex        =   15
  162.       Top             =   1200
  163.       Width           =   255
  164.    End
  165.    Begin VB.Label lblColor 
  166.       BorderStyle     =   1  'Fixed Single
  167.       Height          =   255
  168.       Index           =   7
  169.       Left            =   1800
  170.       TabIndex        =   14
  171.       Top             =   1200
  172.       Width           =   615
  173.    End
  174.    Begin VB.Label lblName 
  175.       Caption         =   "0"
  176.       Height          =   255
  177.       Index           =   6
  178.       Left            =   1440
  179.       TabIndex        =   13
  180.       Top             =   840
  181.       Width           =   255
  182.    End
  183.    Begin VB.Label lblColor 
  184.       BorderStyle     =   1  'Fixed Single
  185.       Height          =   255
  186.       Index           =   6
  187.       Left            =   1800
  188.       TabIndex        =   12
  189.       Top             =   840
  190.       Width           =   615
  191.    End
  192.    Begin VB.Label lblName 
  193.       Caption         =   "0"
  194.       Height          =   255
  195.       Index           =   5
  196.       Left            =   1440
  197.       TabIndex        =   11
  198.       Top             =   480
  199.       Width           =   255
  200.    End
  201.    Begin VB.Label lblColor 
  202.       BorderStyle     =   1  'Fixed Single
  203.       Height          =   255
  204.       Index           =   5
  205.       Left            =   1800
  206.       TabIndex        =   10
  207.       Top             =   480
  208.       Width           =   615
  209.    End
  210.    Begin VB.Label lblName 
  211.       Caption         =   "0"
  212.       Height          =   255
  213.       Index           =   4
  214.       Left            =   1440
  215.       TabIndex        =   9
  216.       Top             =   120
  217.       Width           =   255
  218.    End
  219.    Begin VB.Label lblColor 
  220.       BorderStyle     =   1  'Fixed Single
  221.       Height          =   255
  222.       Index           =   4
  223.       Left            =   1800
  224.       TabIndex        =   8
  225.       Top             =   120
  226.       Width           =   615
  227.    End
  228.    Begin VB.Label lblName 
  229.       Caption         =   "0"
  230.       Height          =   255
  231.       Index           =   3
  232.       Left            =   120
  233.       TabIndex        =   7
  234.       Top             =   1200
  235.       Width           =   255
  236.    End
  237.    Begin VB.Label lblColor 
  238.       BorderStyle     =   1  'Fixed Single
  239.       Height          =   255
  240.       Index           =   3
  241.       Left            =   480
  242.       TabIndex        =   6
  243.       Top             =   1200
  244.       Width           =   615
  245.    End
  246.    Begin VB.Label lblName 
  247.       Caption         =   "0"
  248.       Height          =   255
  249.       Index           =   2
  250.       Left            =   120
  251.       TabIndex        =   5
  252.       Top             =   840
  253.       Width           =   255
  254.    End
  255.    Begin VB.Label lblColor 
  256.       BorderStyle     =   1  'Fixed Single
  257.       Height          =   255
  258.       Index           =   2
  259.       Left            =   480
  260.       TabIndex        =   4
  261.       Top             =   840
  262.       Width           =   615
  263.    End
  264.    Begin VB.Label lblName 
  265.       Caption         =   "0"
  266.       Height          =   255
  267.       Index           =   1
  268.       Left            =   120
  269.       TabIndex        =   3
  270.       Top             =   480
  271.       Width           =   255
  272.    End
  273.    Begin VB.Label lblColor 
  274.       BorderStyle     =   1  'Fixed Single
  275.       Height          =   255
  276.       Index           =   1
  277.       Left            =   480
  278.       TabIndex        =   2
  279.       Top             =   480
  280.       Width           =   615
  281.    End
  282.    Begin VB.Label lblColor 
  283.       BorderStyle     =   1  'Fixed Single
  284.       Height          =   255
  285.       Index           =   0
  286.       Left            =   480
  287.       TabIndex        =   1
  288.       Top             =   120
  289.       Width           =   615
  290.    End
  291.    Begin VB.Label lblName 
  292.       Caption         =   "0"
  293.       Height          =   255
  294.       Index           =   0
  295.       Left            =   120
  296.       TabIndex        =   0
  297.       Top             =   120
  298.       Width           =   255
  299.    End
  300. Attribute VB_Name = "frmQBColor"
  301. Attribute VB_GlobalNameSpace = False
  302. Attribute VB_Creatable = False
  303. Attribute VB_PredeclaredId = True
  304. Attribute VB_Exposed = False
  305. Option Explicit
  306. ' Display the colors and their names.
  307. Private Sub Form_Load()
  308. Dim i As Integer
  309.     For i = 0 To 15
  310.         lblColor(i).BackColor = QBColor(i)
  311.         lblName(i).Caption = Format$(i)
  312.     Next i
  313. End Sub
  314.